# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

urlpatterns = patterns("bvapp.views",
    # this will allow "click on edit, authenticate, correct redirect
    # but not until the URLS are decrufted - seems to have an issue when URL changes via 
    # encoding shifts - ie it works for nice urls like edit/company/Ablynx
    # but gets lost in crufty urls like edit/company/Aastrom%20Biosciences,%20Inc.
    # url(r"^edit/company/(.+)$", "company_page"),

    url(r"^company_old/(.+)$", "company_old_page"), # TODO Remove when new company page will be finished
    url(r"^company/(.+)$", "company"),
    url(r"^company_write/(?P<type>\w+)/$", "company_write"),
    url(r"^echo/$", "echo"),
    url(r"^ticker_symbols/$", "selects", {"type": "ticker_symbols"}),
    url(r"^areas_of_expertise/$", "selects", {"type": "areas_of_expertise"}),
    url(r"^companies/$", "companies_page"),
    url(r"^topic_info/write_multi/(.+)$", "topic_info_write_multi_page"),
    url(r"^topic_info/write_mixed/(.+)$", "topic_info_write_mixed_page"),
    url(r"^create_topic/(.+)$", "create_topic_page"),
    url(r"^topic_info/write_compound/(.+)$", "topic_info_write_compound_page"),
    url(r"^topic_info/write_blurb/(.+)$", "topic_info_write_blurb"),
    url(r"^link_type/", "link_type_page"),
    url(r"^diseases/$", "diseases_page"),
    url(r"^disease/(.+)$", "disease_page"),
    url(r"^technologies/$", "technologies_page"),
    url(r"^technology/(.+)$", "technology_page"),
    url(r"^products/$", "products_page"),
    url(r"^product/(.+)$", "product_page"),
    url(r"^biomolecule/(.+)$", "biomolecule_page"),
    url(r"^therapeutic/(.+)$", "therapeutic_page"),
    url(r"^vcfirms/$", "vcfirms_page"),
    url(r"^vcfirm/(.+)$", "vcfirm_page"),
    url(r"^researchgroups/$", "researchgroups_page"),
    url(r"^researchgroup/(.+)$", "researchgroup_page"),
    url(r"^vcfinancings/$", "vcfinancings_page"),
    url(r"^test/$", "test_page"),
    url(r"^rss_feeds/$", "rssfeeds_page"),
    url(r"^addemail/", "add_email_page"),
    url(r"^sitemap.xml$", "render_xml"),
    #url(r"^rpx/$", "rpx_response"),
    #url(r"^login/$", "test_login"),  
    )
